<?php

use yii\helpers\Html;
/*
use yii\grid\GridView;
*/
use kartik\grid\GridView;

/**
 * @var yii\web\View $this
 * @var yii\data\ActiveDataProvider $dataProvider
 * @var backend\modules\trancfg\models\PubtrandictSearch $searchModel
 */

$this->title = Yii::t('app', '交易字典');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="pubtrandict-index">

    <?php 
        /*
        <h3><?= Html::encode($this->title) ?></h3>
        */
    ?>
    <?php 
        echo $this->render('_search', ['model' => $searchModel]);
    ?>

    <!-- <p>
        <?= Html::a(Yii::t('app', 'Create {modelClass}', [
      'modelClass' => 'Pubtrandict',
    ]), ['create'], ['class' => 'btn btn-success']) ?>
    </p> -->

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        //'filterModel' => $searchModel,
        'panel' => [
            'heading'=>'<h3 class="panel-title"><i class="glyphicon glyphicon-book"></i> 交易字典</h3>',
            'type'=>'primary',
            'before'=>Html::a('<i class="glyphicon glyphicon-plus"></i> Create Pubtrandict', ['create'], ['class' => 'btn btn-success']),
            'after'=>Html::a('<i class="glyphicon glyphicon-repeat"></i> 重置表格', ['index'], ['class' => 'btn btn-info']),
            'showFooter'=>false
        ],
        'responsive'=>true,
        'hover'=>true,

        'columns' => [
            //['class' => 'kartik\grid\CheckboxColumn'],
            //['class' => 'yii\grid\SerialColumn'],
            ['class' => 'kartik\grid\SerialColumn'],

            'MTID',
            // 'ROUTEID',
            'IOFLAG',
            'SEQNO',
            'DICTCODE',
            'DICTTYPE',
            'DICTLEN',
            'DECLEN',
            'DICTNAME',
            'FLAG',
            'SUBMARK',
            'SUBCOND',
            'FIELD',
            'PATH',
            // 'DEFVAL',
            // 'DEALFUNC',
            'MEMO',

            [
                'class' => 'kartik\grid\ActionColumn',
                'viewOptions' => ['title' => '查看'],
                'updateOptions' => ['title' => '修改'],
                'deleteOptions' => ['title' => '删除'],
            ],
        ],
    ]); ?>

</div>
